import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userinfo: {

    }
  },
  getters: {},
  mutations: {
    userinfo(state, value) {
      localStorage.setItem('userinfo', JSON.stringify(value))
      state.userinfo = value

    }
  },
  actions: {},
  modules: {}
})